package com.gjy.vm;

import java.util.ArrayList;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-05-31 17:30:06
 */
public class GcTest {

    public static void main(String[] args) {

        for (int i = 0; i < 100; i++) {
            ArrayList<Object> objects = new ArrayList<>();
            objects.add(i);
        }

        System.gc();
    }
}
